package com.miao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.miao.dto.LoginDto;
import com.miao.dto.UserDto;
import com.miao.entity.UserEntity;
import com.miao.security.entity.User;
import com.miao.util.Result;

import java.util.Map;

public interface UserService extends IService<UserEntity> {

    public User GetUserByName(String username);

    Result<Object> Login(LoginDto dto);

    Result<Object> Register(LoginDto dto);

    Result<Object> Page(Map<String, Object> params);

    Result info();

    Result<Object> save(UserDto dto);
}
